<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>停售商品审核列表</title>
<script type="text/javascript" src="/fuman/js/product.js"></script>


<body class="withvernav">
<div class="bodywrapper">
{{include file='/public/leftmenu.tpl'}}
<div class="centercontent tables">
  <div class="pageheader notab">
    <h1 class="pagetitle">停售商品审核列表</h1>
    
  <span class="pagedesc">
  确认停售之后，商品标停售状态，商品列表中普通用户无权查看;
  所有停售商品在 <a href="/welcome/ajaxbutton?op=showMoreGoods&types=4" target="_blank"><font color="#0000CC">停产商品信息</font></a> 查看
  <br>
  </span>
    <div class="menulist">
    
  </div>
     </div>
  <!--pageheader-->
     <div>
   		<div style="float:left">{{if $managers || in_array('286',$showpower)}}  &nbsp;&nbsp; <a href="javascript:void(0)" onClick="MergeProduct()" class="btn btn2 btn_help"><span>审核通过停售</span>
        </a>
       
         &nbsp;&nbsp; <a href="javascript:void(0)" onClick="nocheckhalt()" class="btn btn2 btn_help"><span>审核不通过停售</span></a>
        {{/if}} 
        </div>
         <div class="page">{{$pageList}} 计{{$total}}条记录，共{{$totalpage}}页</div>
   </div>
  <div id="contentwrapper" class="contentwrapper"> 
    <!--搜索栏-->
    <form class="stdform stdform2" method="get" action="/datareport/haltsales_check">
      <div class="tableoptions">  
           
        关键词 <input type="text" name="other" id="other" class="width100" value="{{$other}}" />
       
        <button class="btn btn_orange btn_search radius50">Search</button>
        
      </div>
    </form>
    <!--搜索栏结束-->
    
    <table cellpadding="0" cellspacing="0" border="0" class="stdtable">
      <colgroup>
      <col class="con1" />
      <col class="con0" />
      <col class="con1" />
      <col class="con0" />
      <col class="con1" />
      <col class="con0" />
      <col class="con1" />
      </colgroup>
      <thead>
        <tr>
          <th class="head0"><a onClick="allSelect('ppid[]')">全选</a></th>
         
          <th class="head0">商品编号</th>
          <th class="head1">商品名称</th>
          <th class="head0">录入时间</th>
          <th class="head1">库存 </th>
          <th class="head1">申请人 </th>
          <th class="head1">申请时间</th>
        </tr>
      </thead>
      <tbody>
      
      {{foreach from=$list item=li key=key}}
      <tr>
        <td><input name="ppid[]" type="checkbox" class="none" id="ppid[]" value="{{$li.id}}"  /></td>
        <td><a href="/product/productlist?other={{$li.p_parent_sku}}" target="_blank">{{$li.p_parent_sku}}</a></td>
        <td>
      	{{if $li.p_sale_status==4}}<font color="Blue"><B>【停售】</B></font>{{/if}}
       {{if $li.p_sale_status==6}}<font color="Blue"><B>【暂停销售】</B></font>{{/if}}
        {{$li.p_parent_name}}</td>
        <td>{{$li.g_updatetime}}</td>
        <td class="center">{{$li.stock}}</td>
    <td class="center">{{$li.oper}}</td>
     <td class="center">{{$li.uptime}}</td>
      </tr>
      {{/foreach}}
      
    </table>
    <div class="page">{{$pageList}}</div>
    <br />
    <br />
  </div>
</div>
<!--bodywrapper-->
<script language="javascript">
function MergeProduct()
{
	var str = selectallpro();
	if(str){
		$("#haltsalessku").val(str);
		$('#MergeProductform').modal('show');
	}
}
function nocheckhalt()
{
	if(confirm('确认不通过停售？'))
	{
		 var str = selectallpro();
		  if (str != false) {
			 $.post("/datareport/ajaxbutton", {"op":"nocheckhalt","goods_idstr":str},
			  function(data){
					if(data)
					{
						window.location.reload();
					}
					
			   },"json");
		  }
		
	}	
}
</script>
<!-- 模态框（Modal） 结算-->
<form action="/datareport/ajaxbutton?op=savehaltsalescheck"  method="post" name="uctform" id="uctform" >
<input type="hidden" name="haltsalessku" id="haltsalessku">
  <div class="modal fade" id="MergeProductform" tabindex="-1" role="dialog" aria-labelledby="sMergeProductform" aria-hidden="true">
    <div class="modal-dialog" style="width:740px;">
      <div class="modal-content">
        <div class="modal-header">
          <button type="button" class="close" data-dismiss="modal" 
               aria-hidden="true">× </button>
          <h4 class="modal-title" id="sMergeProductform">申请停售 </h4>
        </div>
        <div class="modal-body">
          <table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
              <td style="line-height:25px;">关于停售商品说明：<br>
              1、停售商品不会再次上架销售，永久关闭。 <br>
              2、如果遇到有库存的商品，自动进入待清仓流程，仓库核实库存之后，提出清仓申请报表，清仓完成自动标停售<br>
              <br>
              
              
             
             </td>
            </tr>
          </table>
          <div class="modal-footer">
            <button type="button" class="btn btn-default" 
               data-dismiss="modal"> 关闭 </button>
            <button type="button" class="btn btn-primary"  onclick="AWSsubmit('uctform','MergeProductform')"> 提交 </button>
<!--            <button type="submit" name="spa">保存</button>
-->          </div>
        </div>
        <!-- /.modal-content --> 
      </div>
      <!-- /.modal-dialog --> 
    </div>
  </div>
</form>
<!-- 模态框（Modal）合并商品 -->
</body>
</html>